package com.producer.thread;


import com.producer.queue.bean.DataBean;

/**
 * @Author : liu lin qin
 * @Date :  Created by pangoin on 2019/8/26.
 */
public class OutPutThread implements Runnable {

    private DataBean dataBean;
    public DataBean getDataBean() {
        return dataBean;
    }

    public  OutPutThread(DataBean dataBean) {
        this.dataBean = dataBean;
    }

    @Override
    public void run() {
         if(dataBean!=null){
             this.dataBean.getOutPutDealing().send(dataBean);
         }
    }
}
